package javacommon;

import java.util.List;


/**
 * @author CSH
 * 鏁版嵁鐨勫父閲忕被;
 *
 */
public class Constant {

	/**
	 *榛樿姝ｅ湪浣跨敤鐨勭嚎绋�
	 */
	public static int T_NUM=1;
	/***
	 *杩欎釜鍙傛暟鏄繛鎺ユ睜閰嶇疆鏂囦欢(src/com/jw/system/properties/pool.properties)涓�
	 *pool.maxPoolSize
     *pool.queueCapacity
     *杩欎袱涓�鐨勫拰
     *娉ㄦ剰淇敼pool鏂囦欢鏃朵篃瑕佷慨鏀硅繖涓彉閲忕殑鍊�
	 */
	public static int T_MAX_NUM;
	
	/**
	 * 鏀瑰彉姝ｅ湪浣跨敤鐨勭嚎绋嬫暟鐩殑鏂规硶
	 */
	public synchronized static void changeTnum(boolean flag){
		if(flag){
			if(T_NUM<T_MAX_NUM){
				T_NUM = T_NUM + 1;
			}
		}else{
			if(T_NUM>=1){
				T_NUM = T_NUM - 1;
			}
		}
	}


}
